package com.app.micaihu.bean.news;

import android.text.TextUtils;

import com.app.micaihu.bean.ad.NativeAd;
import com.app.micaihu.bean.ad.NativeAdVideo;
import com.app.micaihu.bean.speak.IAttUser;
import com.app.micaihu.bean.speak.ILaud;
import com.app.micaihu.configure.TypeConstant;

import java.util.List;

/**
 * 视频新闻详情
 * Created by linkai on 2016/7/19.
 */
public class VideoContent extends ShareBean implements ILaud,IAttUser{

    private String articleTitle;//视频标题
    private String commentNum;//评论总数
    private String praiseNum;//点赞总数
    private String shareNum;//分享总数
    private String articleTime;//时间
    private String playTime;//播放时长
    //文章类型(1.普通文章、2.普通图集、3普通视频 4.电商文章 5.网页文章 6.电商网页软文 7.网页视频 8.轻专题 9.广告)
    private String articleType;//文章类型
    private String videoUrl;//视频地址
    private String videoCurl;//云视频链接
    private String videoContent;//视频描述
    private String playCount;//播放次数
    private String displayComment;//是否加载评论
    private String isCollect;//是否已收藏 1已收藏 0未收藏
    private String isPraise;//是否点赞
    private String authorRankName;//作者军衔名称
    private String authorRankIcon;//作者军衔图片
    private String status;//关注状态 0未关注 1已关注 2互相关注 ,粉丝列表有该参数
    private String urlStatus;//视频链接分类 1：外链视频 2：云视频 3：两者都有
    private String vip;//是否加v
    private String cateId;//栏目id
    private String updateNotice;//专栏选集名称
    private String setNotice;//专栏选集期数
    private String period;//当前期数
    private String clickNum;//播放次数
    private String plotImg;//封面图


    private String honourPic; //军团勋章
    private String armyGroupInfo; //所属军团 或 军团职位
    private String gid; //所属军团 id

    public String getGid() {
        return gid;
    }

    public void setGid(String gid) {
        this.gid = gid;
    }

    public String getHonourPic() {
        return honourPic;
    }

    public void setHonourPic(String honourPic) {
        this.honourPic = honourPic;
    }

    public String getArmyGroupInfo() {
        return armyGroupInfo;
    }

    public void setArmyGroupInfo(String armyGroupInfo) {
        this.armyGroupInfo = armyGroupInfo;
    }


    private List<NativeAd> adList;//相关新闻集合配置

    private List<NewsEntity> relatedVideo;//相关新闻集合
    private List<NewsEntity> setVideo;//专栏选集列表
    private List<NativeAd> topAdInfo;//专栏选集列表

    private NativeAdVideo insertAds;//视频广告

    public List<NativeAd> getTopAdInfo() {
        return topAdInfo;
    }

    public void setTopAdInfo(List<NativeAd> topAdInfo) {
        this.topAdInfo = topAdInfo;
    }

    public VideoContent(){
        //默认分享类型为视频类型
        this.shareType = TypeConstant.SHARE_TYPE_VIDEO;
    }

    public String getPraiseNum() {
        if(TextUtils.isEmpty(praiseNum)){
            praiseNum = "0";
        }
        return praiseNum;
    }

    public void setPraiseNum(String praiseNum) {
        this.praiseNum = praiseNum;
    }

    public String getShareNum() {
        return shareNum;
    }

    public void setShareNum(String shareNum) {
        this.shareNum = shareNum;
    }

    public String getCommentNum() {
        if(TextUtils.isEmpty(commentNum)){
            commentNum = "0";
        }
        return commentNum;
    }

    public void setCommentNum(String commentNum) {
        this.commentNum = commentNum;
    }

    public String getArticleTime() {
        return articleTime;
    }

    public void setArticleTime(String articleTime) {
        this.articleTime = articleTime;
    }

    public String getArticleType() {
        return articleType;
    }

    public void setArticleType(String articleType) {
        this.articleType = articleType;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public String getVideoContent() {
        return videoContent;
    }

    public void setVideoContent(String videoContent) {
        this.videoContent = videoContent;
    }

    public String getDisplayComment() {
        return displayComment;
    }

    public void setDisplayComment(String displayComment) {
        this.displayComment = displayComment;
    }

    public boolean getIsCollect() {
        if("1".equals(isCollect)){
            return true;
        }
        return false;
    }

    public void setIsCollect(String isCollect) {
        this.isCollect = isCollect;
    }

    public boolean getIsPraise() {
        if("1".equals(isPraise)){
            return true;
        }
        return false;
    }
    public void setIsPraise(String isPraise) {
        this.isPraise = isPraise;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public String getPlayTime() {
        return playTime;
    }

    public void setPlayTime(String playTime) {
        this.playTime = playTime;
    }

    public String getPlayCount() {
        return playCount;
    }

    public void setPlayCount(String playCount) {
        this.playCount = playCount;
    }

    public List<NewsEntity> getRelatedVideo() {
        return relatedVideo;
    }

    public void setRelatedVideo(List<NewsEntity> relatedVideo) {
        this.relatedVideo = relatedVideo;
    }

    public List<NativeAd> getAdList() {
        return adList;
    }

    public void setAdList(List<NativeAd> adList) {
        this.adList = adList;
    }


    public String getAuthorRankName() {
        return authorRankName;
    }

    public void setAuthorRankName(String authorRankName) {
        this.authorRankName = authorRankName;
    }

    public String getAuthorRankIcon() {
        return authorRankIcon;
    }

    public void setAuthorRankIcon(String authorRankIcon) {
        this.authorRankIcon = authorRankIcon;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getVideoCurl() {
        return videoCurl;
    }

    public void setVideoCurl(String videoCurl) {
        this.videoCurl = videoCurl;
    }

    public String getUrlStatus() {
        return urlStatus;
    }

    public void setUrlStatus(String urlStatus) {
        this.urlStatus = urlStatus;
    }

    public String getVip() {
        return vip;
    }

    public void setVip(String vip) {
        this.vip = vip;
    }

    public String getCateId() {
        return cateId;
    }

    public void setCateId(String cateId) {
        this.cateId = cateId;
    }

    public String getUpdateNotice() {
        return updateNotice;
    }

    public void setUpdateNotice(String updateNotice) {
        this.updateNotice = updateNotice;
    }

    public String getSetNotice() {
        return setNotice;
    }

    public void setSetNotice(String setNotice) {
        this.setNotice = setNotice;
    }

    public String getPeriod() {
        return period;
    }

    public void setPeriod(String period) {
        this.period = period;
    }

    public List<NewsEntity> getSetVideo() {
        return setVideo;
    }

    public void setSetVideo(List<NewsEntity> setVideo) {
        this.setVideo = setVideo;
    }

    public String getClickNum() {
        return clickNum+"播放";
    }

    public void setClickNum(String clickNum) {
        this.clickNum = clickNum;
    }

    public String getPlotImg() {
        return plotImg;
    }

    public void setPlotImg(String plotImg) {
        this.plotImg = plotImg;
    }

    public NativeAdVideo getInsertAds() {
        return insertAds;
    }

    public void setInsertAds(NativeAdVideo insertAds) {
        this.insertAds = insertAds;
    }

    @Override
    public String getILaudOperateType() {
        return TypeConstant.ZAN_NORMAL;
    }

    @Override
    public String getILaudNum() {
        return getPraiseNum();
    }

    @Override
    public String getILaudType() {
        return "0";
    }

    @Override
    public void setILaudNum(String iLaudNum) {
        setPraiseNum(iLaudNum);
    }

    @Override
    public String getNewsId() {
        return getArticleId();
    }

    @Override
    public String getICommentId() {
        return "";
    }

    @Override
    public String getIParentCmtId() {
        return "";
    }

    @Override
    public String getIType() {
        return null;
    }

    @Override
    public String getIToUid() {
        return getAuthorId();
    }

    @Override
    public void setIToUid(String toUid) {

    }

    @Override
    public String getIAttType() {
        return getStatus();
    }

    @Override
    public void setIAttType(String status) {
        setStatus(status);
    }
}
